package org.jsbd.boss.service.impl;

import java.util.List;

import org.jsbd.boss.dao.INewStatisticsDao;
import org.jsbd.boss.dao.IRetentStatisticsDao;
import org.jsbd.boss.domian.NewStatisticsBean;
import org.jsbd.boss.domian.RetentStatisticsBean;
import org.jsbd.boss.service.INewOrRetentTaskStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("newOrRetentTaskStatisticsService")
public class NewOrRetentTaskStatisticsServiceImpl implements INewOrRetentTaskStatisticsService {

	@Autowired
	private IRetentStatisticsDao retentStatisticsDao;
	@Autowired
	private INewStatisticsDao newStatisticsDao;
	
	@Override
	public void saveNewTotalNumInfo(List<NewStatisticsBean> statisticsList) {
		newStatisticsDao.saveNewTotalNumInfo(statisticsList);
	}

	@Override
	public void saveRetentTotalNumInfo(List<RetentStatisticsBean> statisticsList) {
		retentStatisticsDao.saveRetentTotalNumInfo(statisticsList);
	}
	
	@Override
	public List<RetentStatisticsBean> getRetentStatisticsTotalNumList(String startDay) {
		return retentStatisticsDao.getRetentTotalNumInfoList(startDay);
	}

	
	
}
